<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<s:set name="date_type" value="%{@com.japp.tools.common.SelectVal@getDataToDateType(q.q_date_type)}"></s:set>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>量化考核数据管理</title>
<s:include value="/app_common/common.jsp"></s:include>
<!-- 日期选择框start -->
<script type="text/javascript" src="<s:property value='webctx'/>/libs/js/form/datePicker/WdatePicker.js"></script>
<!-- 日期选择框end -->
<!-- 选项卡start -->
<script type="text/javascript" src="<s:property value='webctx'/>/libs/js/nav/basicTab.js"></script>
<!-- 选项卡end -->
<!-- 用户选择start -->
<script type="text/javascript" src="<s:property value='webctx'/>/app_common/userPopup/queryUser.js"></script>
<!-- 用户选择end -->
</head>
<body>
<form name="form1" id="form1" action="<s:property value='webctx'/>/reality/qt_findRealityQt.action" method="post" target="frmright">
	<div style="text-align: center;font-weight: bold;"><s:property value="type_name"/>量化考核报表[<s:property value="date_type"/>](南京营业部)</div>
	<fieldset>
		<legend>检索</legend>
		<table>
			<tr>
				<s:if test="#session.u_power<=2">
					<td>用户级别:</td>
					<td>
						<s:if test="#session.u_power==1||#session.u_power==0">
							<select name="q.q_power" id="ei_power" onchange="checkPower(this)" selectedValue="<s:property value='q.q_power'/>" data='{"list":[{"value":"1","key":"南京营业部"},{"value":"2","key":"部门"},{"value":"3","key":"业务员"}]}'></select>
						</s:if>
						<s:elseif test="#session.u_power==2">
							<select name="q.q_power" id="ei_power" onchange="checkPower(this)" selectedValue="<s:property value='q.q_power'/>" data='{"list":[{"value":"2","key":"本部门"},{"value":"3","key":"本部门业务员"}]}'></select>
						</s:elseif>
						<div id="power"></div>
					</td>
				</s:if>
				<td>时间类型:</td>
				<td>
					<select name="q.q_date_type" id="ei_date_type" onchange="checkDateType(this)" selectedValue="<s:property value='q.q_date_type'/>" data='{"list":[{"value":"1","key":"日"},{"value":"2","key":"周"},{"value":"3","key":"月"},{"value":"4","key":"季度"},{"value":"5","key":"半年"},{"value":"6","key":"年"}]}'></select>
				</td>
				<td>检索时间:</td>
	 			<td id="tb_date">
	 				<input type="text" dateFmt="yyyy-MM-dd" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date'/>" class="date" readonly="readonly" style="cursor: pointer;" isShowWeek="true"/>
	 			</td>
	 			<td><input type="button" id="btn1" onclick="checkSearch()" value="数据检索"></td>
			</tr>
		</table>
	</fieldset>
	<s:hidden name="selectedIdx" id="selectedIdx"></s:hidden>
</form>
<fieldset>
	<legend>量化数据</legend>
	<div style="overflow-y:auto;overflow-x:auto;">
		<div id="tb1" name="经营情况表[<s:property value='date_type'/>]（南京营业部)">
			<div style="overflow-y:auto;overflow-x:auto;">
			<table class="tableStyle" style="line-height: 30px;">
				<tr>
					<th>项目</th>
					<th>本<s:property value='date_type'/>数</th>
					<th>本年累计数</th>
					<s:if test="map['en_1'].q_type==1">
						<th>本<s:property value='date_type'/>计划数</th>
						<th>比例</th>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<th>本周计计划数</th>
						<th>比例</th>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<th>本月计计划数</th>
						<th>比例</th>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<th>本季度计计划数</th>
						<th>比例</th>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<th>本半年计计划数</th>
						<th>比例</th>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<th>本年计计划数</th>
						<th>比例</th>
					</s:if>
					<th>上<s:property value='date_type'/>数</th>
					<th>增减比例</th>
				</tr>
				<tr>
					<td>客户拜访数</td>
					<td class="nums"><s:property value="map['r'].b3"/></td>
					<td class="nums"><s:property value="map['c'].b3"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_khbfs"/></td>
						<td class="bnums"><s:property value="map['r'].b3/map['en_1'].q_khbfs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_khbfs"/></td>
						<td class="bnums"><s:property value="map['r'].b3/map['en_2'].q_khbfs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_khbfs"/></td>
						<td class="bnums"><s:property value="map['r'].b3/map['en_3'].q_khbfs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_khbfs"/></td>
						<td class="bnums"><s:property value="map['r'].b3/map['en_4'].q_khbfs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_khbfs"/></td>
						<td class="bnums"><s:property value="map['r'].b3/map['en_5'].q_khbfs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_khbfs"/></td>
						<td class="bnums"><s:property value="map['r'].b3/map['en_6'].q_khbfs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b3"/></td>
					<td class="bnums"><s:property value="map['r'].b3/map['r-1'].b3"/></td>
				</tr>
				<tr>
					<td>个人潜在客户数</td>
					<td class="nums"><s:property value="map['r'].b4"/></td>
					<td class="nums"><s:property value="map['c'].b4"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_qzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b4/map['en_1'].q_qzkhs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_qzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b4/map['en_2'].q_qzkhs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_qzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b4/map['en_3'].q_qzkhs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_qzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b4/map['en_4'].q_qzkhs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_qzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b4/map['en_5'].q_qzkhs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_qzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b4/map['en_6'].q_qzkhs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b4"/></td>
					<td class="bnums"><s:property value="map['r'].b4/map['r-1'].b4"/></td>
				</tr>
				<tr>
					<td>机构潜在客户数</td>
					<td class="nums"><s:property value="map['r'].b5"/></td>
					<td class="nums"><s:property value="map['c'].b5"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_jgqzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b5/map['en_1'].q_jgqzkhs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_jgqzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b5/map['en_2'].q_jgqzkhs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_jgqzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b5/map['en_3'].q_jgqzkhs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_jgqzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b5/map['en_4'].q_jgqzkhs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_jgqzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b5/map['en_5'].q_jgqzkhs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_jgqzkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b5/map['en_6'].q_jgqzkhs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b5"/></td>
					<td class="bnums"><s:property value="map['r'].b5/map['r-1'].b5"/></td>
				</tr>
				<tr>
					<td>潜在客户合计数</td>
					<td class="nums"><s:property value="map['r'].b6"/></td>
					<td class="nums"><s:property value="map['c'].b6"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_sum_qzkhsj"/></td>
						<td class="bnums"><s:property value="map['r'].b6/map['en_1'].q_sum_qzkhsj"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_sum_qzkhsj"/></td>
						<td class="bnums"><s:property value="map['r'].b6/map['en_2'].q_sum_qzkhsj"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_sum_qzkhsj"/></td>
						<td class="bnums"><s:property value="map['r'].b6/map['en_3'].q_sum_qzkhsj"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_sum_qzkhsj"/></td>
						<td class="bnums"><s:property value="map['r'].b6/map['en_4'].q_sum_qzkhsj"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_sum_qzkhsj"/></td>
						<td class="bnums"><s:property value="map['r'].b6/map['en_5'].q_sum_qzkhsj"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_sum_qzkhsj"/></td>
						<td class="bnums"><s:property value="map['r'].b6/map['en_6'].q_sum_qzkhsj"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b6"/></td>
					<td class="bnums"><s:property value="map['r'].b6/map['r-1'].b6"/></td>
				</tr>
				<tr>
					<td>个人开户数</td>
					<td class="nums"><s:property value="map['r'].b7"/></td>
					<td class="nums"><s:property value="map['c'].b7"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_grkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b7/map['en_1'].q_grkhs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_grkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b7/map['en_2'].q_grkhs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_grkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b7/map['en_3'].q_grkhs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_grkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b7/map['en_4'].q_grkhs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_grkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b7/map['en_5'].q_grkhs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_grkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b7/map['en_6'].q_grkhs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b7"/></td>
					<td class="bnums"><s:property value="map['r'].b7/map['r-1'].b7"/></td>
				</tr>
				<tr>
					<td>机构开户数</td>
					<td class="nums"><s:property value="map['r'].b8"/></td>
					<td class="nums"><s:property value="map['c'].b8"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_jgkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b8/map['en_1'].q_jgkhs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_jgkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b8/map['en_2'].q_jgkhs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_jgkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b8/map['en_3'].q_jgkhs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_jgkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b8/map['en_4'].q_jgkhs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_jgkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b8/map['en_5'].q_jgkhs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_jgkhs"/></td>
						<td class="bnums"><s:property value="map['r'].b8/map['en_6'].q_jgkhs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b8"/></td>
					<td class="bnums"><s:property value="map['r'].b8/map['r-1'].b8"/></td>
				</tr>
				
				
				
				
				
				
				<tr>
					<td>开户合计数</td>
					<td class="nums"><s:property value="map['r'].b9"/></td>
					<td class="nums"><s:property value="map['c'].b9"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_khshj"/></td>
						<td class="bnums"><s:property value="map['r'].b9/map['en_1'].q_khshj"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_khshj"/></td>
						<td class="bnums"><s:property value="map['r'].b9/map['en_2'].q_khshj"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_khshj"/></td>
						<td class="bnums"><s:property value="map['r'].b9/map['en_3'].q_khshj"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_khshj"/></td>
						<td class="bnums"><s:property value="map['r'].b9/map['en_4'].q_khshj"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_khshj"/></td>
						<td class="bnums"><s:property value="map['r'].b9/map['en_5'].q_khshj"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_khshj"/></td>
						<td class="bnums"><s:property value="map['r'].b9/map['en_6'].q_khshj"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b9"/></td>
					<td class="bnums"><s:property value="map['r'].b9/map['r-1'].b9"/></td>
				</tr>
				<tr>
					<td>个人入金交易数</td>
					<td class="nums"><s:property value="map['r'].b10"/></td>
					<td class="nums"><s:property value="map['c'].b10"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_grrjjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b10/map['en_1'].q_grrjjjs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_grrjjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b10/map['en_2'].q_grrjjjs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_grrjjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b10/map['en_3'].q_grrjjjs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_grrjjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b10/map['en_4'].q_grrjjjs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_grrjjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b10/map['en_5'].q_grrjjjs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_grrjjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b10/map['en_6'].q_grrjjjs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b10"/></td>
					<td class="bnums"><s:property value="map['r'].b10/map['r-1'].b10"/></td>
				</tr>
				<tr>
					<td>机构入金交易数</td>
					<td class="nums"><s:property value="map['r'].b11"/></td>
					<td class="nums"><s:property value="map['c'].b11"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_jgrrjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b11/map['en_1'].q_jgrrjjs"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_jgrrjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b11/map['en_2'].q_jgrrjjs"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_jgrrjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b11/map['en_3'].q_jgrrjjs"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_jgrrjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b11/map['en_4'].q_jgrrjjs"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_jgrrjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b11/map['en_5'].q_jgrrjjs"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_jgrrjjs"/></td>
						<td class="bnums"><s:property value="map['r'].b11/map['en_6'].q_jgrrjjs"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b11"/></td>
					<td class="bnums"><s:property value="map['r'].b11/map['r-1'].b11"/></td>
				</tr>
				<tr>
					<td>入金交易合计数</td>
					<td class="nums"><s:property value="map['r'].b12"/></td>
					<td class="nums"><s:property value="map['c'].b12"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_sum_rrjjhj"/></td>
						<td class="bnums"><s:property value="map['r'].b12/map['en_1'].q_sum_rrjjhj"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_sum_rrjjhj"/></td>
						<td class="bnums"><s:property value="map['r'].b12/map['en_2'].q_sum_rrjjhj"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_sum_rrjjhj"/></td>
						<td class="bnums"><s:property value="map['r'].b12/map['en_3'].q_sum_rrjjhj"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_sum_rrjjhj"/></td>
						<td class="bnums"><s:property value="map['r'].b12/map['en_4'].q_sum_rrjjhj"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_sum_rrjjhj"/></td>
						<td class="bnums"><s:property value="map['r'].b12/map['en_5'].q_sum_rrjjhj"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_sum_rrjjhj"/></td>
						<td class="bnums"><s:property value="map['r'].b12/map['en_6'].q_sum_rrjjhj"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b12"/></td>
					<td class="bnums"><s:property value="map['r'].b12/map['r-1'].b12"/></td>
				</tr>
				<tr>
					<td>50万元以上交易数</td>
					<td class="nums"><s:property value="map['r'].b13"/></td>
					<td class="nums"><s:property value="map['c'].b13"/></td>
					<s:if test="map['en_1'].q_type==1">
						<td class="nums"><s:property value="map['en_1'].q_wswyis"/></td>
						<td class="bnums"><s:property value="map['r'].b13/map['en_1'].q_wswyis"/></td>
					</s:if>
					<s:if test="map['en_2'].q_type==2">
						<td class="nums"><s:property value="map['en_2'].q_wswyis"/></td>
						<td class="bnums"><s:property value="map['r'].b13/map['en_2'].q_wswyis"/></td>
					</s:if>
					<s:if test="map['en_3'].q_type==3">
						<td class="nums"><s:property value="map['en_3'].q_wswyis"/></td>
						<td class="bnums"><s:property value="map['r'].b13/map['en_3'].q_wswyis"/></td>
					</s:if>
					<s:if test="map['en_4'].q_type==4">
						<td class="nums"><s:property value="map['en_4'].q_wswyis"/></td>
						<td class="bnums"><s:property value="map['r'].b13/map['en_4'].q_wswyis"/></td>
					</s:if>
					<s:if test="map['en_5'].q_type==5">
						<td class="nums"><s:property value="map['en_5'].q_wswyis"/></td>
						<td class="bnums"><s:property value="map['r'].b13/map['en_5'].q_wswyis"/></td>
					</s:if>
					<s:if test="map['en_6'].q_type==6">
						<td class="nums"><s:property value="map['en_6'].q_wswyis"/></td>
						<td class="bnums"><s:property value="map['r'].b13/map['en_6'].q_wswyis"/></td>
					</s:if>
					<td class="nums"><s:property value="map['r-1'].b13"/></td>
					<td class="bnums"><s:property value="map['r'].b13/map['r-1'].b13"/></td>
				</tr>
			</table>
			</div>
		</div>
	</div>
</fieldset>
</body>
<script type="text/javascript">
	function checkSearch(){
		showProgressBar();
		document.form1.submit();
	}
	//dateRender
	/*
	var dateFun = {
			methods:function(obj){
				var val = document.getElementById('ei_date_type').value;
				if(val==2){
					$('#ei_cdate').val(obj.getP('W','W'));
				}else if(val == 3){
					$('#ei_cdate').val(obj.getP('M','M'));
				}
			}
	}*/
	function checkDateType(obj){
		var val = obj.value;
		var str = "";
		if(val==1){
			str = '<input type="text" dateFmt="yyyy-MM-dd" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date_type!=1?@com.japp.tools.common.Common@getThisDate():q.q_date'/>" class="date" readonly="readonly" style="cursor: pointer;"/>';
		}else if(val==2){
			str = '<input type="text" dateFmt="yyyy-MM-dd" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date_type!=2?@com.japp.tools.common.Common@getThisDate():q.q_date'/>" class="date" readonly="readonly" style="cursor: pointer;" isShowWeek="true"/>';
		}else if(val==3){
			str = '<input type="text" dateFmt="yyyy-MM" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date_type!=3?(@com.japp.tools.common.Common@getThisDate()).substring(0,7):q.q_date.substring(0,7)'/>" class="date" readonly="readonly" style="cursor: pointer;"/>';
		}else if(val==4){
			str = '<div style="float:left;"><input type="text" dateFmt="yyyy" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date.substring(0,4)'/>" class="date" readonly="readonly" style="cursor: pointer;"/></div>';
			str += '<div style="float:right;"><select name="q.q_cdate" id="ei_cdate" selectedValue="<s:property value='q.q_date_type!=4?1:q.q_cdate'/>" data=\'{"list":[{"value":"1","key":"第一季度"},{"value":"2","key":"第二季度"},{"value":"3","key":"第三季度"},{"value":"4","key":"第四季度"}]}\'></select></div>';
		}else if(val==5){
			str = '<div style="float:left;"><input type="text" dateFmt="yyyy" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date.substring(0,4)'/>" class="date" readonly="readonly" style="cursor: pointer;"/></div>';
			str += '<div style="float:right;"><select name="q.q_cdate" id="ei_cdate"  selectedValue="<s:property value='q.q_cdate.length>2?1:q.q_cdate'/>" data=\'{"list":[{"value":"1","key":"上半年(1~6)"},{"value":"2","key":"下半年(6~12)"}]}\'></select></div>';
		}else if(val==6){
			str += '<input type="text" dateFmt="yyyy" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date.substring(0,4)'/>" class="date" readonly="readonly" style="cursor: pointer;"/>';
		}
		if(val!=4&&val!=5&&val!=2){
			str+='<input type="hidden" name="q.q_cdate" id="ei_cdate" value="<s:property value='q.q_cdate'/>">';
		}
		$('#tb_date').empty().append(str);
		$('#ei_date').dateRender();
		if(val==4||val==5){
			$('#ei_cdate').selectRender();
		}
		//<td id="tb_date">
		//	<input type="text" dateFmt="yyyy-MM-dd" id="ei_date"  name="q.q_date" value="<s:property value='q.q_date'/>" class="date" readonly="readonly" style="cursor: pointer;" isShowWeek="true"/>
		//</td>
	}
	var power = "<s:property value='q.q_power'/>";
	var u_power = "<s:property value='#session.u_power'/>";
	function checkPower(obj){
		var val = obj.value;
		var str;
		if(u_power=='1'||u_power=='0'){
			if(val==2){
				str = '<div style="float:right;"><select name="q.q_dpid" id="query_dp_id" selectedValue="<s:property value='q.q_dpid'/>" data=\'<s:property value="json_val" escape="false"/>\'></select></div>';
			}else if(val==3){
				str = '<div style="float:left;"><select name="q.q_dpid" id="query_dp_id" selectedValue="<s:property value='q.q_dpid'/>" data=\'<s:property value="json_val" escape="false"/>\'></select></div>';
				str+= '<div style="float:right;"><input type="hidden" id="user_code" name="q.q_ucode" value="<s:property value="q.q_ucode" />"><input type="text" id="user_name"  name="q.q_uname" watermark="点击选择业务人员" style="cursor: pointer;" onclick="queryUserAll()" class="query_user" value="<s:property value="q.q_uname" />"/></div>';
			}
		}else if(u_power=='2'){
			if(val==2){
				str = '<input type="hidden" id="query_dp_id" name="q.q_dpid" value="<s:property value="q.q_dpid" />">';
			}else if(val==3){
				str = '<div style="float:right;"><input type="hidden" id="ei_dpid" name="q.q_dpid" value="<s:property value="q.q_dpid" />"><input type="hidden" id="user_code" name="q.q_ucode" value="<s:property value="q.q_ucode" />"><input type="text" id="user_name"  name="q.q_uname" style="cursor: pointer;" watermark="点击选择业务人员" class="query_user" onclick="queryUserAll()" value="<s:property value="q.q_uname" />"/></div>';
			}
			$('#power').empty().append(str);
			$('#user_name').textinputRender();
			return false;
		}
		$('#power').empty().append(str);
		$('#query_dp_id').selectRender();
		$('#user_name').textinputRender();
	}
	$(function(){
		checkDateType(document.getElementById('ei_date_type'));
		if(u_power!='3'){
			checkPower(document.getElementById('ei_power'));
		}
		var text = null;
		$('.nums').each(function(){
			text = $(this).text();
			$(this).text(Number(text));
		});
		$('.bnums').each(function(){
			text = Number($(this).text());
			$(this).text(toPercent(text,0));
		});
	});
</script>
</html>